﻿using IBLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace WebApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class MemberLevelController : ControllerBase,IMemberLevelBLL
    {
        public MemberLevelController(IMemberLevelBLL bll)
        {
            Bll = bll;
        }

        public IMemberLevelBLL Bll { get; }
        [HttpGet]
        public List<MemberLevel> GetAllMemberLevel()
        {
            return Bll.GetAllMemberLevel();
        }
    }
}
